package com.spring.aop;

import java.util.List;

import javax.validation.constraints.NotNull;

public class UserBean {

	private int id;
	@NotNull (message= "姓名不能为空！" )  
	private String name;
	@NotNull (message= "地址不能为空！" )  
	private String address;
	private List<SchoolBean> schoolBeans;
	public List<SchoolBean> getSchoolBeans() {
		return schoolBeans;
	}
	public void setSchoolBeans(List<SchoolBean> schoolBeans) {
		this.schoolBeans = schoolBeans;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
}
